package com.freework.util.excel.read.vo;


import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.freework.util.excel.read.service.rowToObject.ValueFormat;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "col")

public class ColVO
{
	@XmlAttribute(required=true)
	private int colnum=0;
	@XmlAttribute(required=true)
	private String colname="";
	@XmlAttribute()
	private Class<?> valueclazz=null;
	 @XmlJavaTypeAdapter(ValueFormatAdapter.class)
	@XmlAttribute(name="valueFormat")
	private ValueFormat format=null;
	public ColVO(){}
	public ColVO(int colnum, String colname) {
		super();
		this.colnum = colnum;
		this.colname = colname;
	}
	public ColVO(int colnum, String colname,ValueFormat format) {
		super();
		this.colnum = colnum;
		this.colname = colname;
		this.format = format;
	}
	public ColVO(int colnum, String colname,Class valueclazz) {
		super();
		this.colnum = colnum;
		this.colname = colname;
		this.valueclazz = valueclazz;
	}

	public Class<?> getValueclazz() {
		return valueclazz;
	}

	public void setValueclazz(Class<?> valueclazz) {
		this.valueclazz = valueclazz;
	}
	public int getColnum() {
		return colnum;
	}

	public void setColnum(int colnum) {
		this.colnum = colnum;
	}

	public String getColname() {
		return colname;
	}

	public void setColname(String colname) {
		this.colname = colname;
	}
	public ValueFormat getFormat() {
		return format;
	}
	public void setFormat(ValueFormat format) {
		this.format = format;
	}
	
	
}
